<template>
  <view class="cm-page" :style="[style, cmStyle]" :class="[cmClass]">
    <view class="cm-page-top" :style="[topStyle]" v-if="parseInt(top) > 0"
      @click.stop.prevent="clickHandler"
      @touchmove.stop.prevent="moveHandler">
      <slot name="top"></slot>
    </view>
    <view :style="[contentStyle]">
      <slot></slot>
    </view>
  </view>
</template>

<script src="./cm-page.js"></script>

<style lang="stylus">
@import './cm-page.styl'
</style>
